Calling from the CLI

In the present version of DVIprint<#34#><#34#> the program can only be called from the CLI. However it can be controlled very easily from there:

<#144#>usage: dviprint [-?] [-a <#35#>fontarea<#35#>] [-b <#36#>bytes<#36#>] [-m <#37#>bytes<#37#>] [-f <#38#>page<#38#>]<#144#> <#145#>[-t <#39#>page<#39#>] [-z <#40#>dpi<#40#>] [-o {0|1|2|3}] [-d {1|2|3|4|5|6|7}]<#145#> <#146#>[-u] [-g] [-i] [-x] [-r] [-p] [-q] [-e <#41#>bytes<#41#>]<#146#> <#147#>[-l] [-s] [-h <#42#>offset<#42#>] [-v <#43#>offset<#43#>] dvifile<#147#> and offset = real number<#44#>{pt|pc|in|bp|cm|mm|dd|cc}<#44#>

<#45#>-d {1|2|3|4|5|6|7} <#45#> <#46#>-?<#46#> Shows a short explanation of the options, without starting the program. The default values are shown too. <#47#>-a fontarea<#47#> Appends <#48#>fontarea<#48#> as additional directory in the search path of the fontlibraries. More on this in chapter 7.2 of the ShowDVI<#49#><#49#> manual. <#50#>-b bytes<#50#> Size of the memory space, in which the loaded fonts are kept. The unit used is byte. The default value can be asked with the <#51#>-?<#51#> option. <#52#>-m bytes<#52#> Maximum size of the allocated page-bitmap. Size 0 disables this feature. <#53#>-f page<#53#> Start the printing at page <#54#>page<#54#>. <#55#>-t page<#55#> Last page to be printed. <#56#>-z dpi<#56#> Overwrites the dpi resolution. <#57#>-o {0|1|2|3}<#57#> Choice of print quality. The best quality can be achieved with 'zero' (default). With 'one' the draft quality is chosen. 'Two' and 'three' are of importance to HP-Deskjet owners. They are meant to conserve ink. To this end only every second line is printed. Otherwise 'two' corresponds with letter quality and 'three' with the draft mode. <#58#>-d {1|2|3|4|5|6|7}<#58#> Choice of printer type. 'One' and 'two' switch on the NEC-P6/P7 mode. At option two the optimization is smaller, but is better fitting for some NEC-P6/P7 compatibles. 'Three' and 'four' are both for the HP-DeskJet. They differ in that in mode three no optimization is done, and that in mode two the volume of the produced data is considerably larger. Normally mode two is preferred. The options 'four', 'five', 'six' and 'seven' are for the Epson compatible 9-pin printers. These differ in that 'six' and 'seven' of the printerdrivers do not produce <#59#>ESC-$<#59#>-command sequences, as there are printers, that do not understand this command. At 6 (white)spaces are still skipped with 'spaces'. <#60#>-u<#60#> With this switch you can choose between printing bidirectionally or only unidirectionally. Zero corresponds to unidirectional and one to bidirectional. <#61#>-g<#61#> This option activates the ``Landscape'' mode. That is, the page is printed rotated over 90 degrees. This mode however functions unfortunately only on printers with the same horizontal and vertical resolution, i.e. with the HP-Deskjet and the NEC-P6/P7 printers. Mind you, this mode requires the entire bitmap of a page to be in the memory all at once. This therefore requires a well expanded memory. <#62#>-i<#62#> This option prevents the normal output on the printer. Instead, one page at a time is written to an IFF-file. The IFF-file is created in the current working directory under the name <#63#>;SPMlt;dvi-File;SPMgt;.p;SPMlt;page number;SPMgt;<#63#>. Similarly to the Landscape function, an entire page has to fit in the memory here too. For this function, the ``iff.library'' of Christian A. Weber is needed. <#64#>-x<#64#> When set, a form feed will not be given after the last page has been printed. This then useful, when you want to print smaller things like disk stickers or similar. <#65#>-r<#65#> Prints the pages in reversed order. <#66#>-p<#66#> Loads all fonts, which are used in the document, already at the start of the program in the internal font memory. <#67#>-q<#67#> Suppresses output of the current page number. <#68#>-e bytes<#68#> Size of the internal printer buffer. As two of those are needed, the program uses twice the amount you specify for these buffers. <#69#>-l<#69#> Prevents creation of a logfile. <#70#>-s<#70#> Outputs additional information in the logfile. See also chapter 8 of the ShowDVI<#71#><#71#> manual. <#72#>-h rxx<#72#> Sets the horizontal offset to <#73#>r<#73#>. <#74#>xx<#74#> is here the unit. Following units can be chosen from: <#75#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;mm <#75#> <#76#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;pt<#76#> point (is used by TEX<#77#><#77#>) <#78#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;pc<#78#> pica #math12#1pc = 12pt <#79#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;in<#79#> inch #math13#1in = 72.27pt <#80#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;bp<#80#> big point #math14#72bp = 1in <#81#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;cm<#81#> centimeter <#82#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;mm<#82#> millimeter <#83#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;dd<#83#> didôt point #math15#1157dd = 1238pt <#84#>;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;cc<#84#> cicero #math16#1cc = 12dd <#85#>-v rxx<#85#> Sets the vertical offset to <#86#>r<#86#>. <#87#>xx<#87#> is a unit as with the <#88#>-h<#88#> option. <#89#>dvifile<#89#> The DVI file that is to be printed.